export default class {
  static isWeixn() {
    let ua = navigator.userAgent.toLowerCase();
    if (ua.match(/MicroMessenger/i) == "micromessenger") {
      return true;
    } else {
      return false;
    }
  }
  static isIos() {
    let u = navigator.userAgent;
    return !!u.match(/\(i[^;]+;( U;)? CPU.+Mac OS X/);
  }
}

// const UA = inBrowser && window.navigator.userAgent.toLowerCase()
// export const isIE9 = UA && UA.indexOf('msie 9.0') > 0
// export const isAndroid = UA && UA.indexOf('android') > 0
// export const isIos = UA && /(iphone|ipad|ipod|ios)/i.test(UA)
// export const isWechat = UA && UA.indexOf('micromessenger') > 0
